﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.WebPages.OAuth;
using MsForgeReboot.Web.Models;

namespace MsForgeReboot.Web {
    
    public static class AuthConfig {
        public static void RegisterAuth() {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            //OAuthWebSecurity.RegisterMicrosoftClient(
            //    clientId: "000000004C0F4686",
            //    clientSecret: "Pa1KKbwM6zldRjnV3hyrTXziX2KCXarB");

            OAuthWebSecurity.RegisterTwitterClient(
                consumerKey: "NCqHjcriLOgmPXKlwlCqcA",
                consumerSecret: "8l54cZpT3ulNDI1qQMkFfuYYKxkXDkdkkIGRkmIXUAA");

            OAuthWebSecurity.RegisterFacebookClient(
                appId: "200808480043153",
                appSecret: "57a087c77f1191607e32b838e4d84baf");

            //OAuthWebSecurity.RegisterGoogleClient();
            OAuthWebSecurity.RegisterClient(new MsForgeReboot.Web.Helpers.MsforgeGoogleClient(), "Google", null);
        }
    }
}
